package com.kangyi.admin.mapper;

import com.kangyi.admin.annotation.AutoFill;
import com.kangyi.dto.NursingHomeTagDTO;
import com.kangyi.entity.NursingHomeTag;
import com.kangyi.enumeration.OperationType;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Blank
 * @version 1.0
 */
@Mapper
public interface NursingHomeTagMapper {
    @Delete("delete from nursing_home_tag where nursing_home_id = #{id}")
    void delete(Integer id);

    @AutoFill(value = OperationType.INSERT)
    void insertBatch(List<NursingHomeTag> nursingHomeTagDTOList);
}
